package com.example.demo.design.chain_responsibility;

/**
 * @Author: liull
 * @Description: 客户端，一般来说需要客户端来创建职责链
 * @Date: Created in 16:34 2020/12/24
 * @Modified By:
 */
public class Client {

    public static void main(String[] args) {
        // 创建职责链
        Handler h1 = new ConcreteHandlerA();
        Handler h2 = new ConcreteHandlerB();
        h1.setSuccessor(h2);


    }
}
